<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaTradePayProtocolPayIsopenParam/AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreement.class.php');

class AlibabaOceanOpenplatformBizTradeResultTradeWithholdStatusResult extends SDKDomain {

       	
    private $paymentAgreements;
    
        /**
    * @return 
    */
        public function getPaymentAgreements() {
        return $this->paymentAgreements;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreement[] $paymentAgreements     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPaymentAgreements(AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreement $paymentAgreements) {
        $this->paymentAgreements = $paymentAgreements;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "paymentAgreements", $this->stdResult )) {
    			$paymentAgreementsResult=$this->stdResult->{"paymentAgreements"};
    				$object = json_decode ( json_encode ( $paymentAgreementsResult ), true );
					$this->paymentAgreements = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreementResult=new AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreement();
						$AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreementResult->setArrayResult($arrayobject );
						$this->paymentAgreements [$i] = $AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreementResult;
					}
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    		if (array_key_exists ( "paymentAgreements", $this->arrayResult )) {
    		$paymentAgreementsResult=$arrayResult['paymentAgreements'];
    			$this->paymentAgreements = new AlibabaOceanOpenplatformBizTradeResultTradePaymentAgreement();
    			$this->paymentAgreements->setStdResult ( $paymentAgreementsResult);
    		}
    		    	    		}
 
   
}
?>